﻿Public Class Win32Api
    'API 常數定義
    Public Const SW_HIDE As Integer = 0
    Public Const SW_NORMAL As Integer = 1
    Public Const SW_MAXIMIZE As Integer = 3
    Public Const SW_SHOWNOACTIVATE As Integer = 4
    Public Const SW_SHOW As Integer = 5
    Public Const SW_MINIMIZE As Integer = 6
    Public Const SW_RESTORE As Integer = 9
    Public Const SW_SHOWDEFAULT As Integer = 10

    <DllImport("user32.dll")> Public Shared Function ShowWindowAsync(ByVal hWnd As IntPtr, ByVal nCmdShow As Integer) As Boolean
    End Function
    <DllImport("user32.dll")> Public Shared Function ShowWindow(ByVal hwnd As Integer, ByVal nCmdShow As Integer) As Integer
    End Function
    <DllImport("user32.dll")> Public Shared Function SetForegroundWindow(ByVal hwnd As Integer) As Integer
    End Function



End Class
